package com.bifang.common.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Map;
import lombok.Data;

/**
 * 码表
 *
 * @author chenzh
 * @since 2020-07-07
 */
@Data
@ApiModel(value = "查询生成码对象", description = "查询生成码对象")
public class CodeCreateVO extends BaseVO {

    @ApiModelProperty(value = "码属性：1 二维码 2 条形码")
    private String codePro;

    @ApiModelProperty(value = "码类型 20 个人身份码 30企业身份码")
    private String codeType;

    @ApiModelProperty(value = "过期时间 <=0 为永久有效")
    private Long redisTime;

    @ApiModelProperty(value = "码对应唯一id 个人码对应身份证 企业码对应统一社会信用编码")
    private String uniqueId;

    @ApiModelProperty(value = "码唯一id对应名称，如姓名或单位名称")
    private String name;

    @ApiModelProperty(value = "申请渠道类型 1-App  2-h5 3-微信小程序 4-支付宝小程序 5-钉钉小程序")
    private String applyType;

    @ApiModelProperty(value = "app类别 1社交 2金融 3政府 4银行")
    private String appType;

    @ApiModelProperty(value = "app等级 1-国家级 2-省级 3-市级 4-县级")
    private String appRate;

    @ApiModelProperty(value = "来源类型 1 本地生成 2省就业创业码")
    private String sourceType;

    @ApiModelProperty(value = "来源对应码")
    private String sourceCode;

    @ApiModelProperty(value = "码颜色 QrcodeColorEnum")
    private String codeColor;

    @ApiModelProperty(value = "背景颜色 QrcodeColorEnum")
    private String backColor;

    @ApiModelProperty(value = "是否只使用一次 0 否 1 是")
    private String onceFlag;

    @ApiModelProperty(value = "申请用户id")
    private String applyUserId;

    @ApiModelProperty(value = "申请应用id")
    private String applyClientId;

    @ApiModelProperty(value = "图片地址")
    private String imgPath;

    @ApiModelProperty(value = "码相关数据")
    private Map<String, Object> codeData;

    @ApiModelProperty(value = "纬度")
    private BigDecimal latitude;

    @ApiModelProperty(value = "经度")
    private BigDecimal longitude;

    @ApiModelProperty(value = "链接地址")
    private String linkUrl;

    @ApiModelProperty(value = "链接类型：router 内部路由 h5 第三方H5 weixin 第三方微信小程序")
    private String linkType;

    @ApiModelProperty(value = "内部路由路径")
    private String linkPath;

    @ApiModelProperty(value = "内部路由名")
    private String linkName;
}
